<?php

namespace So\Exception;

use So\Response;
use Hyperf\Di\Annotation\Inject;

/**
 * 默认的Controller异常类
 * 用户可以使用Hyperf Handler进行关联
 * @author Saopig <1306222220@qq.com>
 */
class ControllerException extends \RuntimeException
{
    /**
     * @Inject()
     * @var Response
     */
    protected $response;

    public function __construct($message, $code = 0)
    {
        parent::__construct($message, $code);
    }
}
